package pers.lance.xml.db.dao;

import java.util.List;

/**
 * @author Lance Li
 * @date 7/10/2018 6:48 PM
 * @desc
 */
public interface BasicDao<Entity> {

    public int add(Entity entity);

    public int update(Entity entity);

    public int delete(Entity entity);

    public Entity load(int id);

    public List<Entity> findAll();

}
